<%@ page contentType="text/html; charset=utf-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
		<link rel="stylesheet" type="text/css" href="${contextPath}/resource/css/default.css" />
		<link rel="stylesheet" type="text/css" href="${contextPath}/resource/tree/zTreeStyle/zTreeStyle.css" />
		<script type="text/javascript" src="${contextPath}/resource/tree/jquery-1.4.2.js"></script>
		<script type="text/javascript" src="${contextPath}/resource/tree/jquery.ztree-2.6.js"></script>
		<script type="text/javascript" src="${contextPath}/resource/js/systemUtil.js"></script>
		<script type="text/javascript">
	function submitFrom(fm){
		if(document.getElementById("smsDetail.smName").value ==""){
			alert("短信名称不能为空 !");
			return;
		}
		fm.submit();
	}
</script>
</head>
<body>
	<s:form action="SmsDetailAction_update.do" namespace="/mobile" method="post" enctype="multipart/form-data">
		<table class="menu_table">
			<tr>
				<th>
					<a href="SmsDetailAction_list.do">业务短信管理</a>&gt;&gt;添加
				</th>
			</tr>
		</table>
		<div class="listtable">
			<div class="secondDiv">
				<table class="form_table">
					<s:hidden name="smsDetail.smId" value="%{smsDetail.smId}"></s:hidden>
					<s:hidden name="smsDetail.business.ywId" value="%{businessId}"></s:hidden>
					<%@include file="/show_field_error.jsp"%>
					<tr>
						<th width="20%">
							短信名称
						</th>
						<td width="80%">
							<s:textfield name="smsDetail.smName" id="smsDetail.smName" size="20"
								maxlength="50" />
							<span class="txtblue" id="">*</span>
						</td>
					</tr>
					<tr>
						<th>
							短信内容
						</th>
						<td>
							<s:textarea name="smsDetail.smSms" id="smsDetail.smSms" rows="10" cols="100"></s:textarea>
						</td>
					</tr>
				</table>
				
				<table width="80%" border="0" align="center" cellpadding="3" cellspacing="1">
					<s:token></s:token>
				    <tr>
				      <td align="center"  >
				      <div align="center">
				      	<input type="button" value="" class="apply_style" align="middle" onclick="submitFrom(this.form);"/>
				        <input type="button" onclick="javascript:location='SmsDetailAction_list.do'" class="back_style"  />
				        <input type="reset" id="重置 " class="reset_style" value=""/>
				        </div>
				        </td>
				    </tr>
				</table>
			</div>
		</div>
	</s:form>
</body>
</html>
